<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>运营平台</title>
   	<import type="css" basepath="__CSS__" file="bootstrap" />
	<import type="css" basepath="__CSS__" file="datetimepicker" />
	<import type="css" basepath="__CSS__" file="fontawesome" />
	<import type="css" basepath="__CSS__" file="fonts" />
	<import type="css" basepath="__CSS__" file="bootgrid" />
	<import type="css" basepath="__CSS__" file="style" />
</head>

<body>
<div class="topNav">
    <span class="text"><i class="iconfont">&#xe607;</i><a href="{:U('Index/index')}" target="_top">首页</a>><span>财务管理</span></span>
</div>

<div class="contain">
   <!-- <div class="pageTitle">
        <h2 class="title">财务管理</h2>
    </div>-->
   
   
   <!-- <div class="searchBox">
        <form action="/financeMange/search" method="get">
            
            <div class="formOne formDivide formBusiness">
                <div class="line">
                    <span class="name">所在地</span>
                    <div class="col-md-3 col-sm-10 col-xs-3">
                        <select class="inpTextOne form-control" name="provin">
                            <option selected="selected" value='null'>请选择</option>
                      
                            <option id="{{$v->id}}" tid="0">{{$v->name}}</option>
                       
                        </select>
                    </div>
                    <div class="col-md-3 col-sm-10 col-xs-3">
                        <select class="inpTextOne form-control" name="city">
                           <option selected="selected" value="empty">请选择</option>
                        </select>
                    </div>
                    <div class="col-md-3 col-sm-10 col-xs-3">
                        <select class="inpTextOne form-control" name="school">
                           <option selected="selected" value="empty">请选择</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="formTwo formDivide formBusiness">
                <div class="line">
                    <span class="name">统计日期</span>
                    <div class="col-md-3 col-sm-5 col-xs-4">
                        <input type="text" name="start" class="inpTextOne form-control datetimepicker">
                    </div>
                    <div class="col-md-3 col-sm-5 col-xs-4">
                        <input type="text" name="end" class="inpTextOne form-control datetimepicker">
                    </div>
                </div>
                <div class="line">
                    <span class="name">关键字</span>
                    <div class="col-md-6 col-sm-10 col-xs-8">
                        <input type="text" name="keyword" class="inpTextOne form-control" placeholder="ID、商铺名">
                    </div>
                </div>
            </div>
            <div class="formThree formDivide formBusiness">
                <div class="line">
                    <div class="marl85 col-md-9 addPdding">
                        <button type="submit" class="btn btn-success btn-lg">查询</button>
                    </div>
                </div>
            </div>
        </form>
    </div>-->
	
	
	
    <div class="tableBoxOne">
        <div class="pageTitle">
            <h2 class="title">财务管理</h2>
        </div>
        <div class="scroll">
            <table id="grid" class="table table-bordered" data-selection="false" data-multi-select="false" data-row-select="false" data-keep-selection="false">
            <thead>
                <tr>
                    <th data-column-id="01" data-width="150">商铺号（ID）</th>
                    <th data-column-id="02" data-width="150" >店铺名</th>
                    <th data-column-id="03" data-width="120">店主姓名</th>
                    <th data-column-id="04" data-width="180">身份证号</th>
                    <th data-column-id="05" data-width="120">手机号</th>
                    <th data-column-id="06" data-width="180">银行卡</th>
                    <th data-column-id="07" data-width="120">开户行</th>
                    <th data-column-id="08" data-width="120">开户行网点</th>
                    <th data-column-id="9" data-width="180">持卡人</th>
                    <th data-column-id="10" data-width="180">待回汇款金额</th>
                    <th data-column-id="11" data-width="180">已回款金额</th>
                    <th data-column-id="12" data-width="180">总金额</th>
                    <th data-column-id="13" data-width="120">回款状态</th>
                    <th data-column-id="14" data-width="120">剩余红包金额</th>
                    <th data-column-id="15" data-width="120">剩余红包数量</th>
                    <th data-column-id="16" data-width="120">已发红包总数</th>
                    <th data-column-id="17" data-width="120">总金额</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="list" item="item" >
                <tr>
                    <td>{$item.id}</td>
                    <td>{$item.shop_name}</td>
                    <td>{$item.keeper}</td>
                    <td>{$item.idcard}</td>
                    <td>{$item.phone}</td>
                    <td>{$item.bankcard}</td>
                    <td>{$item.bank}</td>  
                    <td>{$item.bank_branch}</td> 
                    <td>{$item.keeper}</td>
                    <td>￥{$item.w_money}</td>
                    <td>￥{$item.h_money}</td>
                    <td>￥{$item.t_money}</td>
                    <td>
					  <if condition="$item.h_money_status eq 0 ">
					  待回款
					  <else/>
					  已回款
					  </if>
					
					
					</td>
                    <td>￥{$item.rest_money}</td>
                    <td>{$item.number}</td>
                    <td>{$item.send_num}</td> 
                    <td>￥{$item.all_money}</td>
                </tr>
                </foreach>
                </tbody>
            </table>
              {$page}
        </div>
    </div>
</div>

<script src="/App/Admin/public/js/jquery-2.1.1.min.js"></script>
<script src="/App/Admin/public/js/bootstrap.min.js"></script>
<script src="/App/Admin/public/js/jquery.datetimepicker.js"></script>
<script src="/App/Admin/public/js/jquery.bootgrid.min.js"></script>
<script src="/App/Admin/public/js/jquery.bootgrid.fa.min.js"></script>
<script src="/App/Admin/public/js/time.js"></script>
<script type="text/javascript">
$("select").change(function(){
 var t=$(this)
var checkText=$(this).find("option:selected").text();
var checkValue=$(this).find("option:selected").attr("id");
var tid=$(this).find("option:selected").attr("tid");
      $.get('/financeMange/type',{'id':checkValue,'tid':tid},function(data){
            t.parent().next().find("select").html("");
            t.parent().next().find("select").append(data);
      })
 
 //alert(checkValue);
});
</script>
</body>
</html>